
#pragma once

#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <string>

class UdpSocket
{
public:
    UdpSocket();
    void Open();
    void CloseFd();
    void SetOpt();
    void SetNonBlocking();
    int  GetSocketFd() { return m_socket_fd; }
private:
    int m_socket_fd;
    struct sockaddr_in m_sai;
};